package MapDemo;

import java.util.HashMap;

public class MapGetDemo {
    public static void main(String[] args) {
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("001","张三");
        map.put("002","李四");
        map.put("003","王二");
        map.put("004","麻子");
        map.put("005","王五");
        map.put("006","麻子");
        System.out.println(map);
        String value = map.get("001");
        String value1 = map.get("002");
        System.out.println(value);
        System.out.println(value1);
    }
}
